<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>留言板</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <style>
        .endtag{
            border-radius: 13px;
            padding: 7px;
            text-align: center;
            margin-top: 10px;
        }
        .cont {
            overflow: auto;
        }
    </style>
</head>
<body>

<div class="container" style="border-style:solid; border-width:1px;margin-bottom: 80px;border-radius: 0.25rem;border-color: #DFDFDF">
    <!--输入框开始-->
    <h3>评论区</h3>
    <div style="margin: 20px 10px 50px 10px;">
        <form role="form">
            <div class="form-group">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <input id="addMessageTitle" type="text" class="form-control" name="title" placeholder="标题">
                    </div>
                    <div class="panel-body">
                        <textarea id="addMessageContent" class="form-control" rows="5" placeholder="内容"></textarea>
                    </div>
                </div>
                <input id="btnaddMessage" type="button" onclick="addMessage()" class="btn btn-danger pull-right" value="发表">
            </div>
        </form>
    </div>
    <br/><hr/>
    <!--输入框结束-->
    <!--留言展示区开始-->
    <div id="showNote" style="margin-bottom: 10px">
        <img style="display:block;margin:0 auto" id="loadinggif" src="${pageContext.request.contextPath}/static/images/loading.gif" />
    </div>
    <!--留言展示区结束-->
    <div class="endtag">
        <button class="btn-sm btn-success" onclick="loadingMore()" title="点击加载更多">加载更多</button>
    </div>

</div>

<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdn.staticfile.org/jquery-cookie/1.4.0/jquery.cookie.min.js"></script>
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script>
    var productID = ${id}
    var index = 0;
    var content_path = "${pageContext.request.contextPath}";
    var session_user = "${sessionScope.user}"

</script>
<script src="${pageContext.request.contextPath}/static/js/note.js"></script>
</body>
</html>
